import { useParams } from "react-router-dom"
import Favorite from "./Favorite"
import Games from "./Games"

const Sections = () => {
    const { sectionId = "" } = useParams<{ sectionId: string }>()
    return sectionId === "favorite" ? <Favorite /> : <Games />
}

export default Sections
